﻿using System;
using System.Windows.Forms;
using Scommesse.Model;
using Scommesse.Presenters;
using Scommesse.View;

namespace Scommesse
{
    public static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ///* scommentare per creare nuova BetCard Cliente */
            //Cliente cliente = new Cliente("Simone", "Destro", new DateTime(1922, 11, 23), "MRRSS22A23B267L");
            //BetCard b = new BetCard(cliente, "simone");
            //Persistence.DataSaver.SaveBetCardOnFile(b);

            ///* scommentare per creare nuova BetCard Admin */
            //Cliente cl = new Cliente("ele", "cau", new DateTime(1999, 12, 2), "dddddddddddd");
            //BetCardAdmin bcard = new BetCardAdmin(cl, "admin", "admin");
            //Persistence.DataSaver.SaveBetCardOnFile(bcard);

            EventoStarter.StartCheck();

            InserimentoTessera view = new InserimentoTessera();
            InserimentoTesseraPresenter presenter = new InserimentoTesseraPresenter(view);
            Application.Run(view);
        }
    }
}